package com.mall.service;

import com.github.pagehelper.PageInfo;

import java.util.List;

public interface Service<T> {

    public int insert(T t) ;

    public List<T> queryData(T t) ;

    public  int update(T t)   ;

    public int deleteById(String id) ;


    public  T queryDataById(String id);


    public PageInfo<T> queryDataByPage(int currentPage, int pageSize, T t);

}
